import {request,CONTENT_TYPE} from "../utils/request";


export function info(){
    return request(
        {
            url: '/role/userAndRole',
            method:'get',
        }
    )
}




export function infoSearch(data){
    return request(
        {
            url: '/role/findByUsername',
            method:'get',
            data
        }
    )
}

export function del(userId, roleId) {
    return request({
        url: '/role/delUserAndRole',
        method: 'delete',
        headers: {
            'User-Id': userId,
            'Role-Id': roleId
        }
    });
}


export function plus(data){
    return request({
        url:'/role/plusRole',
        method:'post',
        data
    })
}